:root{
  --viewer-background-color--:white;
  --viewer-font-color--:black;
  --viewer-height--: calc(100vh - 120px);
  --viewer-width--: calc(100vw - 10px);

  --viewer-data-height--:320px;
  --viewer-compare-size--: 50px;

  --app-title-height--: 50px;

  --app-background-color--:#1982cc;
  --app-menu-height--:56px;
  --app-menu-font-size:20px;

  --app-content-height--:456px;

}

.App {
  text-align: center;
}

.App-logo {
  /* height: 40vmin; */
  opacity: 0.5;
  position: absolute;
  top: 5px;
  left: 5px;
  width: var(--app-title-height--);
  height: var(--app-title-height--);
  object-fit: cover;
  pointer-events: none;
  border-radius: 10px;
}

.App-title {
  font-size: 32px;
  height: var(--app-title-height--);
  margin: 5px auto 5px auto;
  font-weight: bold;
}

@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 5s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  0% { background-color: white; }
  50% { background-color: #1982cc; }
  100% { background-color: white; }
}

.main-panel{
  background: #1982cc;
  width: 100vw;
  height: 100vh;

  overflow: auto;
}

.data-panel{
  margin: 5px;
  background-color: var(--viewer-background-color--);
  color: var(--viewer-font-color--);

  /* width: var(--viewer-width--);
  height: var(--viewer-height--); */
  padding: 5px;

  overflow: auto;

  border: 1px solid red;
}

  .data-panel .message{
    font-size: larger;
    font-weight: bold;
    color: goldenrod;
  }

.menu-panel {
  display: flex;
  justify-content: flex-end;
  left: 5px;
  margin: 5px;
}
  .menu-panel .items {
    background:rgba(200, 200, 200, 0.8);
    font-size: smaller;
    position: absolute;
    display: flex;
    flex-direction: column;
    left: 5px;
    top: var(--app-title-height--);

    margin: 10px 0 0 0;
    padding: 5px;

    border: 1px solid black;
  }

  .menu-panel .items label {
    margin: auto;
  }

  .menu-panel .items input {
    width: 4em;
    margin: 0 auto 0 0;
  }

.menu-panel label{
  margin: 0 0 0 5px;
}

  .data-panel .legend label{
    margin: auto 2px auto 2px;
  }

  .data-panel .legend button{
    margin: 2px;
  }

  .data-panel .legend input[type='number']{
    width: 5em;
    margin: 2px;
  }

  .data-panel .creator{
    display: flex;
    justify-content: center;
    margin-top: 5px;
  }

input[type='number'] {
  width: 5em;
  margin: auto 2px auto 2px;
}
  
  .data-panel  .creator button{
    margin: auto 2px auto 2px;
  }

  .data-panel .compare {
    display: table;
    margin: auto;
  }

  .data-panel .compare .row{
    display: table-row;
  }

  .data-panel .compare .data{
    display: table-cell;
    vertical-align: middle;
  }

  .pie{
    width: var(--viewer-compare-size--);
    height: var(--viewer-compare-size--);

    margin: auto;
    /* display: flex; */
    border: 1px solid black;
    border-radius: 50%;
  }

  .pie label{
    font-size:large;
    font-weight: bold;
    /* margin: auto; */
  }

  .txt-italic {
    font-style: italic;
  }

  .txt-xxxl {
    font-size: xx-large;
    font-weight: bold;
  }


.ctrl-panel{
  margin: 5px;
  padding: 5px;
  background: white;

  display: flex;
  /* width: var(--viewer-width--); */

  border: 1px solid red;
}

  .ctrl-panel .algorithm{
    display: flex;
    flex-direction: column;
    margin: auto;
  }

  .ctrl-panel .algorithm .row{
    display: flex;
    margin: 2px;
  }

  .ctrl-panel .algorithm .row button{
    margin: 0 2px 0 2px;
  }

.data-viewer{
  display: flex;
  height: var(--viewer-data-height--);

  justify-content:space-between;

  box-sizing: border-box;
  border-bottom: 1px solid gray;

  overflow-y: hidden;
  overflow-x: auto;
}

.counter-viewer {
  display: flex;
  /* height: var(--viewer-data-height--); */

  justify-content:space-between;

  box-sizing: border-box;
  border-bottom: 1px solid gray;

  overflow-y: hidden;
  overflow-x: auto;
}

.counter-viewer .data {
  min-width: 25px;
  /* width: 95%; */
  height: 95%;
  margin: 5px;

  display: flex;
  flex-direction: column;

  -webkit-user-select: none;
  user-select: none;

  box-sizing: border-box;
  border: 1px solid black;
}

.txt-bold{
  font-weight: bold;
}

  .data-viewer .data {
    min-width: 25px;
    /* width: 95%; */
    height: 95%;
    margin: auto 5px auto 5px;

    display: flex;
    flex-direction: column;

    -webkit-user-select: none;
    user-select: none;

    box-sizing: border-box;
    border: 1px solid black;
  }

  .data-viewer .data .value{
    font-weight: bold;
  }

  .data-viewer .data .figure{
    height: 100%;
  }

  .data-viewer .data .figure:hover {
    cursor: pointer;
    border-width: 3px;
  }

  .data-viewer .data .index{
    font-style: italic;
  }

  .clickable {
    border-bottom: 1px solid black;

    -webkit-user-select: none;
    user-select: none;
  }

  .clickable:hover {
    cursor: pointer;
    color: gold;
  }

  .md {
    background: var(--viewer-background-color--);
    max-width: var(--viewer-width--);
    margin: 5px;
    padding: 5px;
    
    text-align: left;
    border: 1px solid red;
  }

.App-helper{
  word-wrap: break-word;
  text-align: left;
  margin: 5px;

  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.node-viewer{
  display: flex;
  max-width: var(--viewer-width--);
  flex-direction: column;

}

  .node-viewer .children{
    display: flex;
    flex-direction: row;

    justify-content:space-between;
    overflow-x: auto;

    border-bottom: 1px dashed gray;
  }

  .node-viewer .children .left{
    flex: 1;
    border-right: 1px dashed gray;
  }

  .node-viewer .children .right{
    flex: 1;
    border-left: 1px dashed gray;
  }

.align-center{
  margin: auto;
}

.align-left{
  display: flex;
  margin-right: auto;
}
.align-right{
  display: flex;
  margin-left: auto;
}

.bucket-viewer {
  display: flex;
  margin: 5px;
  justify-content: left;
  border: 1px dashed gray;

  overflow-x: auto;
}

.bucket-viewer .head{
  font-weight: bold;
  font-style: italic;
  min-width: 4em;
  margin: auto 5px auto auto;
  border-left: 1px dashed gray;
}

.bucket-viewer .data{
  min-width: 3em;
  /* width: 95%; */
  height: 95%;
  margin: 5px;

  display: flex;
  flex-direction: column;

  -webkit-user-select: none;
  user-select: none;

  box-sizing: border-box;
  border: 1px solid black;
}